package io.datajek.springbasics.movierecommendersystem.Lesson2;

import io.datajek.springbasics.movierecommendersystem.Lesson1.ContentBasedFilter;

public class RecommenderImplementation {
    private Filter filter;


    public RecommenderImplementation(Filter filter){
        super();
        this.filter = filter;
    }

    public String[] recommedMovies(String movie){
        System.out.println("正在使用的过滤器名称：" +filter+ "\n");
        String[] results = filter.getRecommendations("Finding Dory");
        return results;
    }





    //CollaborativeFilter filter = new CollaborativeFilter();
        //String[] results = filter.getRecommendations("Finding Dory");
        //return results;
        //io.datajek.springbasics.movierecommendersystem.Lesson1.ContentBasedFilter filter = new ContentBasedFilter();






}
